<div class="bdlccc bdrccc gadiend-white">
    <div class="pt4 pb4 pl4 pr4">
        <h4 class="pl8 pt7 pb8 pr8 ovfh mt0 mb0 mr0 ml0 bdbccc">
            {{if isset($Data["OBJ"])}}
                Tiêu đề : {{if isset($Data["OBJ"])}}{{$Data["OBJ"]["title"]|escape:'html'}}{{/if}}
            {{else}}
                Nội dung mới
            {{/if}}
        </h4>
        <div class="pl8 pr8 pt8 pb8 mt0 mb0 ml0 mr0 ovfa">

            <input type="hidden" name="txtID" id="txtID" value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]["id"]}}{{/if}}"/>
            <table class="w800px">
                <tr>
                    <td class="w100px tar red">Tiêu đề</td>
                    <td>
                        <div class="pr10">
                            <input id="txtTitle" name="txtTitle" type="text"  class="classic-input w100pc"
                                   value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]["title"]|escape:'html'}}{{/if}}"
                                   onblur="getAliasTo('#txtTitle','#txtAlias')"
                                   />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="w100 tar red">Alias</td>
                    <td>
                        <div class="pr10">
                            <input id="txtAlias" name="txtAlias" type="text"  class="classic-input w100pc"
                                   value="{{if isset($Data["OBJ"])}}{{$Data["OBJ"]["alias"]}}{{/if}}"
                                   />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="w100 tar red">Danh mục</td>
                    <td>
                        <div class="pr">
                            <select id="cbxType" name="cbxType" class="classic-select w100pc">
                                <option value="Khác">Khác</option>
                                <option 
                                    {{if isset($Data["OBJ"])}}
                                        {{if $Data["OBJ"]["category"]=="Về Chúng Tôi"}}
                                            selected="1"
                                        {{/if}}
                                    {{/if}}
                                    value="Về Chúng Tôi">Về Chúng Tôi</option>
                                <option 
                                    {{if isset($Data["OBJ"])}}
                                        {{if $Data["OBJ"]["category"]=="Trợ Giúp"}}
                                            selected="1"
                                        {{/if}}
                                    {{/if}}
                                    value="Trợ Giúp">Trợ Giúp</option>
                                <option 
                                    {{if isset($Data["OBJ"])}}
                                        {{if $Data["OBJ"]["category"]=="Hợp Tác"}}
                                            selected="1"
                                        {{/if}}
                                    {{/if}}
                                    value="Hợp Tác">Hợp Tác</option>
                            </select>
                    </td>
                </tr>
                <tr>
                    <td class="w100px tar vtat red"><label class="lh24 red">Nội dung</label></td>
                    <td id="tdContent">
                        <textarea id="txtContent" name="txtContent" class="w100pc"  style="height: 500px;">{{if isset($Data["OBJ"])}}{{$Data["OBJ"]["content"]}}{{/if}}</textarea>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
<script>
    $(document).ready(function () {
        addEditorContent("txtContent");
    });
</script>